package com.ruoyi.web.controller.shopping;

import com.ruoyi.system.domain.shopping.Carousel;
import com.ruoyi.system.service.shopping.CarouselService;
import com.ruoyi.system.view.common.Result;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import java.util.List;

@RestController
@RequestMapping("/xiaomi/v2/carousel")
public class CarouselController {
    @Autowired
    private CarouselService carouselService;
    @GetMapping
    public Result<List<Carousel>> list(){
        List<Carousel> list = carouselService.list();
        return Result.success(list,"查询成功");
    }
}
